package com.softtown.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.softtown.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author: Dingyayong
 * @Date: 2019/6/6 16:52
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("sys_feedback")
public class SysFeedBackEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private String fbNum;

    /**
     * 类型   1：故障 2：咨询  3：建议 9：其他
     * isNullAble:1
     */
    private Integer type;

    /**
     * 标题
     * isNullAble:1
     */
    private String title;

    /**
     * 内容
     * isNullAble:1
     */
    private String content;

    /**
     * 反馈有无附件 0：无 1：有
     * isNullAble:1
     */
    private Integer fbHasAttDoc;

    /**
     * 联系方式
     * isNullAble:1
     */
    private String contact;

    /**
     * 反馈时间
     * isNullAble:1
     */
    private Date fbDate;

    /**
     * 反馈用户
     * isNullAble:1
     */
    private Long fbUserId;

    /**
     * 反馈相关公司id
     * isNullAble:1
     */
    private Long fbCompId;

    /**
     * 已读 0:未读 1：已读
     * isNullAble:1
     */
    private Integer fbIsRead;

    /**
     * 状态
     * isNullAble:1
     */
    private Integer status;

    /**
     * 更新者
     * isNullAble:1
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;

    /**
     * 更新时间
     * isNullAble:1
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    /**
     * 更新时间戳
     * isNullAble:1
     */
    private String updateTimestamp;

    /**
     * 逻辑删除
     * isNullAble:1
     */
    private Integer isDeleted;

    /**
     * 公司名称
     */
    @TableField(exist = false)
    private String companyName;

    /**
     * 字典值 故障
     */
    @TableField(exist = false)
    private String breakdown;

    /**
     * 字典值 咨询
     */
    @TableField(exist = false)
    private String consulting;

    /**
     * 字典值 建议
     */
    @TableField(exist = false)
    private String advice;

    /**
     * 字典值 其他
     */
    @TableField(exist = false)
    private String other;

    /**
     * 字典值 Open
     */
    @TableField(exist = false)
    private String open;

    /**
     * 字典值 Close
     */
    @TableField(exist = false)
    private String close;

    /**
     * 已读标识
     */
    @TableField(exist = false)
    private Integer replyIsRead;
}
